package com.qunji.cpsdistribution.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjq
 * @since 2020-07-23
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * id编号
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 账号
     */
    private String accountNumber;
    /**
     * 用户手机号
     */
    private String userIphone;
    /**
     * 用户类型id
     */
    private Integer typeId;
    /**
     * 微信id
     */
    private Long wxId;
    /**
     * 密码
     */
    private String userPassword;
    /**
     * 邮箱
     */
    private String userEmail;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 用户地址
     */
    private String userAddress;
    /**
     * 规范id
     */
    private Long guidanceId;
    /**
     * id
     */
    private Long unsubscribeId;
    /**
     * 用户头像
     */
    private String userImg;
    /**
     * 性别
     */
    private String userSex;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public String getUserIphone() {
        return userIphone;
    }

    public void setUserIphone(String userIphone) {
        this.userIphone = userIphone;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Long getWxId() {
        return wxId;
    }

    public void setWxId(Long wxId) {
        this.wxId = wxId;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Long getGuidanceId() {
        return guidanceId;
    }

    public void setGuidanceId(Long guidanceId) {
        this.guidanceId = guidanceId;
    }

    public Long getUnsubscribeId() {
        return unsubscribeId;
    }

    public void setUnsubscribeId(Long unsubscribeId) {
        this.unsubscribeId = unsubscribeId;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "User{" +
        ", userId=" + userId +
        ", userName=" + userName +
        ", accountNumber=" + accountNumber +
        ", userIphone=" + userIphone +
        ", typeId=" + typeId +
        ", wxId=" + wxId +
        ", userPassword=" + userPassword +
        ", userEmail=" + userEmail +
        ", createTime=" + createTime +
        ", userAddress=" + userAddress +
        ", guidanceId=" + guidanceId +
        ", unsubscribeId=" + unsubscribeId +
        ", userImg=" + userImg +
        ", userSex=" + userSex +
        "}";
    }
}
